.class public Lcom/xingbook/park/ui/bi;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/view/View;

.field private e:Landroid/widget/ImageView;

.field private f:Lcom/xingbook/park/ui/bj;

.field private g:F


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/bj;Z)V
    .locals 9
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput p2, p0, Lcom/xingbook/park/ui/bi;->g:F

    iput-object p3, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    const/high16 v0, 0x42c8

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v2, -0xe74b13

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    const/high16 v1, 0x4190

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x43c8

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x4316

    mul-float/2addr v3, p2

    int-to-float v4, v0

    sub-float/2addr v3, v4

    float-to-int v3, v3

    new-instance v4, Landroid/view/View;

    invoke-direct {v4, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    int-to-float v5, v3

    const/high16 v6, 0x4000

    div-float/2addr v5, v6

    const/16 v6, 0x8

    new-array v6, v6, [F

    const/4 v7, 0x0

    const/4 v8, 0x0

    aput v8, v6, v7

    const/4 v7, 0x1

    const/4 v8, 0x0

    aput v8, v6, v7

    const/4 v7, 0x2

    const/4 v8, 0x0

    aput v8, v6, v7

    const/4 v7, 0x3

    const/4 v8, 0x0

    aput v8, v6, v7

    const/4 v7, 0x4

    aput v5, v6, v7

    const/4 v7, 0x5

    aput v5, v6, v7

    const/4 v7, 0x6

    aput v5, v6, v7

    const/4 v7, 0x7

    aput v5, v6, v7

    sget v5, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v7, 0x10

    if-lt v5, v7, :cond_1

    const/4 v5, 0x0

    const v7, 0xffffff

    const v8, -0xe74b13

    invoke-static {v5, v7, v6, v8}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v5, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v1, v5, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iput v0, v5, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    invoke-virtual {v4, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v4}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    const/high16 v0, 0x4228

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x42f6

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x40a0

    mul-float/2addr v2, p2

    float-to-int v2, v2

    new-instance v3, Landroid/widget/ImageView;

    invoke-direct {v3, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    invoke-virtual {v3, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    sget-object v4, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x10

    if-lt v3, v4, :cond_2

    iget-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    const/4 v4, 0x0

    const v5, 0xffffff

    div-int/lit8 v6, v1, 0x2

    const/4 v7, -0x1

    invoke-static {v4, v5, v6, v7}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    iget-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    invoke-virtual {v3, v2, v2, v2, v2}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    const/16 v0, 0xf

    invoke-virtual {v2, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    const/high16 v0, 0x41f0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x433a

    mul-float/2addr v1, p2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    const/4 v3, 0x0

    const/high16 v4, 0x4228

    mul-float/2addr v4, p2

    invoke-virtual {v2, v3, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x2

    const/4 v4, -0x2

    invoke-direct {v2, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v1, v2, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42be

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    const/4 v3, 0x0

    const v4, 0x41dccccd

    mul-float/2addr v4, p2

    invoke-virtual {v2, v3, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x2

    const/4 v4, -0x2

    invoke-direct {v2, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v1, v2, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    if-eqz p4, :cond_0

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    const v1, 0x7f0a0021

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setId(I)V

    const/high16 v0, 0x420c

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x41f8

    mul-float/2addr v1, p2

    float-to-int v1, v1

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    invoke-virtual {v2, v0, v1, v0, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v1, 0x42ea

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x42dc

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    const v2, 0x7f0202aa

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    :cond_0
    if-eqz p4, :cond_3

    const/16 v0, 0x64

    :goto_2
    int-to-float v0, v0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x4198

    mul-float/2addr v1, p2

    const/high16 v2, 0x4000

    div-float/2addr v1, v2

    float-to-int v1, v1

    new-instance v2, Landroid/view/View;

    invoke-direct {v2, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    invoke-virtual {v2, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    const v3, 0x7f0202b7

    invoke-virtual {v2, v3}, Landroid/view/View;->setBackgroundResource(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v3, 0x4341

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x42a2

    mul-float/2addr v4, p2

    float-to-int v4, v4

    invoke-direct {v2, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xb

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iput v1, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bi;->addView(Landroid/view/View;)V

    return-void

    :cond_1
    const/4 v5, 0x0

    const v7, 0xffffff

    const v8, -0xe74b13

    invoke-static {v5, v7, v6, v8}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_2
    iget-object v3, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    const/4 v4, 0x0

    const v5, 0xffffff

    div-int/lit8 v6, v1, 0x2

    const/4 v7, -0x1

    invoke-static {v4, v5, v6, v7}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1

    :cond_3
    const/16 v0, 0x12

    goto :goto_2
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 11

    const/4 v7, 0x0

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    const/4 v2, -0x1

    const/4 v5, 0x0

    const/4 v8, 0x1

    move-object v0, p3

    move v4, v3

    move v6, v3

    move-object v9, v7

    move-object v10, v7

    invoke-static/range {v0 .. v10}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZFILcom/xingbook/c/f;ZLjava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public getRealHeight()I
    .locals 2

    const/high16 v0, 0x4316

    iget v1, p0, Lcom/xingbook/park/ui/bi;->g:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->a:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->c:Landroid/widget/TextView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->b:Landroid/widget/TextView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    invoke-interface {v0}, Lcom/xingbook/park/ui/bj;->c()V

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->e:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    invoke-interface {v0}, Lcom/xingbook/park/ui/bj;->b()V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->d:Landroid/view/View;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bi;->f:Lcom/xingbook/park/ui/bj;

    invoke-interface {v0}, Lcom/xingbook/park/ui/bj;->a()V

    goto :goto_0
.end method
